package com.ruoyi.nucleicacid.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.basis.domain.Community;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 楼栋核酸任务对象 t_buildtask
 * 
 * @author ruoyi
 * @date 2022-10-17
 */
@Data
public class Buildtask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 小区名 */
    @Excel(name = "小区名")
    private Long communityId;

    /** 楼栋名 */
    @Excel(name = "楼栋名")
    private Long buildId;

    /** 任务名 */
    @Excel(name = "任务名")
    private String taskName;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date starTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 核酸地点 */
    @Excel(name = "核酸地点")
    private String nucleicSite;

    /** 任务人数 */
    @Excel(name = "任务人数")
    private Integer numberTasks;

    /** 完成人数 */
    @Excel(name = "完成人数")
    private Long completed;

    private Community community;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }
    public void setBuildId(Long buildId) 
    {
        this.buildId = buildId;
    }

    public Long getBuildId() 
    {
        return buildId;
    }
    public void setTaskName(String taskName) 
    {
        this.taskName = taskName;
    }

    public String getTaskName() 
    {
        return taskName;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setStarTime(Date starTime) 
    {
        this.starTime = starTime;
    }

    public Date getStarTime() 
    {
        return starTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setNucleicSite(String nucleicSite) 
    {
        this.nucleicSite = nucleicSite;
    }

    public String getNucleicSite() 
    {
        return nucleicSite;
    }
    public void setNumberTasks(Integer numberTasks) 
    {
        this.numberTasks = numberTasks;
    }

    public Integer getNumberTasks() 
    {
        return numberTasks;
    }
    public void setCompleted(Long completed) 
    {
        this.completed = completed;
    }

    public Long getCompleted() 
    {
        return completed;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("communityId", getCommunityId())
            .append("buildId", getBuildId())
            .append("taskName", getTaskName())
            .append("status", getStatus())
            .append("starTime", getStarTime())
            .append("endTime", getEndTime())
            .append("nucleicSite", getNucleicSite())
            .append("numberTasks", getNumberTasks())
            .append("completed", getCompleted())
            .toString();
    }
}
